package com.gws.ievent.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @author song
 * @date 2022/10/23 20:20
 */
@Data
@Configuration
public class ISchedulerConfig {

    @Value("${scheduler-config.wheelTimerThreadFactoryName}")
    private String wheelTimerThreadFactoryName;

    @Value("${scheduler-config.tickDuration}")
    private long tickDuration = 100;

    @Value("${scheduler-config.ticksPerWheel}")
    private int ticksPerWheel = 64;

    @Value("${scheduler-config.threadPoolThreadName}")
    private String threadPoolThreadName = "scheduler-thread-pool";

    @Value("${scheduler-config.corePoolSize}")
    private int corePoolSize = 10;

    @Value("${scheduler-config.maximumPoolSize}")
    private int maximumPoolSize = 20;

    @Value("${scheduler-config.keepAliveTime}")
    private long keepAliveTime = 60;

    @Value("${scheduler-config.mapCapacity}")
    private int mapCapacity = 64;

}
